{%include file="header.html"%}
<form action="{%$formAction%}" method="POST" {%if $is_validator%} id="adminform" onsubmit="return Validator.Validate(this)" {%/if%}>
<script language="javascript" src="{%$smarty.const.BASEURI%}public/js/ui.datetimepicker.js"></script>
<link rel="stylesheet" type="text/css" href="{%$smarty.const.BASEURI%}public/css/ui.datepicker.css"/>
<style type="text/css">
table div{
	float:left;
	margin:3px auto 6px auto;
	padding:0px;
}
#search tr{
	line-height:120%;
	margin:0px;
	padding:0px;
}
</style>
<table border="0" class="search" cellspacing="0" id="search">
   	<tr>
    	<td class="searchlogo">&nbsp;</td>
		<td>
        会员编号:<input type="text" class="text" style="width:100px" name="s[user_id]" value="{%$search.user_id%}"/>
        登录时间:<input class="text" style="width:120px" type="text" name="s[login_stime]" id="logon_date_s" readonly value="{%$search.login_stime%}"/>
     	- <input class="text" style="width:120px" type="text" name="s[login_etime]" id="logon_date_e" readonly value="{%$search.login_etime%}"/>
        <input type="hidden" name="excel" id="excel" value="" />
        <input type="button" class="button" name="ng" onclick="submitform('{%$smarty.const.BASEURI%}user_log/index',false)" value="查询" />
        </td>
    </tr>
</table>
<table width="100%" border="0" class="adminlist" cellspacing="0">

  <thead>
  <tr>
    <th>会员编号</th>
    <th>登录IP</th>
    <th>登录时间</th>
  </tr>
  </thead>
  <tbody>
  {%foreach from=$result item="row"%}
  <tr class="row0">
    <td>{%$row.user_id%}</td>
    <td>{%$row.user_login_ip%}</td>
    <td>{%$row.user_login_time|date_format:"%Y-%m-%d %H:%M:%S"%}</td>
  </tr>
 {%/foreach%}
  <tr>
	<td colspan="3">人数:{%$sum.user_id%} IP数:{%$sum.login_ip%}</td>
	<td colspan="3">&nbsp;</td>
    <td>&nbsp;</td>
	<td>&nbsp;</td>
  </tr>
  </tbody>
  <tfoot>
      <tr>
        <td><!--<input type="button" class="button" onclick="makeexcel()" value="导表" />-->&nbsp;</td>
        <td colspan="8" style="text-align:center">{%$page%}</td>
      </tr>
  </tfoot>
</table>
</form>
<script language="javascript">
	$('#logon_date_s').datetimepicker({dateFormat:"yy-mm-dd",timeFormat:""});
	$('#logon_date_e').datetimepicker({dateFormat:"yy-mm-dd",timeFormat:""});
</script>